{% extends 'layout/basic.html' %}
{% load static %}
{% block title %} 订单 {% endblock %}

{% block content %}
    <table class="table">
        <thead>
        <tr>
            <th>编号</th>
            <th>商品名称</th>
            <th>商品分类</th>
            <th>商品价格</th>
            <th>操作</th>

        </tr>
        </thead>
{#        <form action="" method="post">#}
            <tbody>

            {% for i in Market_all %}
                <tr>
                    <th scope="row">{{ i.id }}</th>
                    <td id="Mname" value="{{ i.Mname }}">{{ i.Mname }}</td>
                    <td id="classify" value="{{ i.classify }}">{{ i.classify }}</td>
                    <td id="price" value="{{ i.price }}">{{ i.price }}</td>
                    <td>
                        <button><a href="{% url 'add' id=i.id %}"> 消费</a></button>
                    </td>
                </tr>
            {% endfor %}


            </tbody>
{#        </form>#}
    </table>
{% endblock %}
{% block js %}
    <script>

        function d() {
            var Mname = $('#Mname').text()

            console.log(Mname)
        }
    </script>
{% endblock %}